﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="UCLoaiThe.ascx.cs" Inherits="Admin_UCControls_UCLoaiThe" %>

<table width="100%">
  
    
    <tr>
        <td>
            <asp:GridView ID="GridLoaiThe" runat="server" AutoGenerateColumns="False" DataKeyNames="ID" 
                           OnRowCommand="GridLoaiThe_RowCommand" 
                           CssClass="mGrid"  
                           PagerStyle-CssClass="pgr"  
                           AlternatingRowStyle-CssClass="alt">
              <Columns>
                    <asp:TemplateField HeaderText="STT">
                    <ItemTemplate>
                         <%# Container.DataItemIndex + 1 %>  
                    </ItemTemplate>
                    </asp:TemplateField>
              
                   <asp:TemplateField HeaderText="Loại Thẻ">
                    <ItemTemplate>
                        <%# Eval("LoaiTheDK") %>
                    </ItemTemplate>
                    </asp:TemplateField>
                    
                     <asp:TemplateField HeaderText="T&#234;n Thẻ">
                    <ItemTemplate>
                        <%# Eval("TenThe") %>
                    </ItemTemplate>
                    </asp:TemplateField>
                   <asp:TemplateField ItemStyle-Width="65px"><ItemTemplate>
                        <asp:LinkButton ID="btnSua" runat="server" Text="Sửa" CommandName="Sua" CommandArgument='<%#Bind("Id")%>' />
                         &nbsp;<asp:LinkButton ID="btnXoa" runat="server" Text="Xóa" CommandName="Xoa" CommandArgument='<%#Bind("Id")%>' OnClientClick="javascript:return confirm('Có chắc xóa Loại Thẻ này không?');"/>
                  </ItemTemplate>
                    </asp:TemplateField>
                    
              </Columns>
              
            </asp:GridView>
        </td>
    </tr>
    <tr>
    <td style="padding-top:5px">
        <asp:Button ID="btnThemMoi" runat="server" Text="Thêm mới" OnClick="btnThemMoi_Click" /></td>
    </tr>
</table>

